package com.ian.constant;

/**
 * 接口：用于存放各种常量
 */
public class Constants {

    public static final String[] RANDOM_STR_ARR = {
        "0","1","2","3","4","5","6","7","8","9","A","B","C","D","E",
        "F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T",
        "U","V","W","X","Y","Z","a","b","c","d","e","f","g","h","i",
        "j","k","l","m","n","o","p","q","r","s","t","u","v","w","x",
        "y","z","_","-"
    };

    public static final String REPORT_YEAR = "2020";
    public static final String REPORT_NO = "RP01-2001000000001";
    public static final String REPORT_NAME = "2020 Report (just for test)";
    public static final String REPORT_TITLE = "参加调研的样本数量";

    public static final String LOCAL_PIC_PATH = "/home/witt/ettmt/pic/beau";
    public static final String LOCAL_DYNAMIC_DATASOURCE_PATH = "/home/witt/1project/microservices/doc/dynamic_datasource/dynamic_datasource_doc.md";
    public static final int RETRY_SINGLE_PIC_MAX = 3;  // 单张图片
    public static final int RETRY_SINGLE_PIC_SET_MAX = 5;  // 一套图片

    // time type
    public final static String TIME_SECOND = "SECOND";
    public final static String TIME_MILLISECOND = "MILLISECOND";
    public final static String TIME_YMD = "YYYY-MM-dd";
    public final static String TIME_HMS = "HH:mm:ss";
    public final static String TIME_YMDHMS = "YYYY-MM-dd HH:mm:ss";

    // 下载“人世间”电视：请求头
    public final static String USER_AGENT_WINDOWS = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.108 Safari/537.36";
    public final static String USER_AGENT_LINUX = "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.198 Safari/537.36";
    // 下载“人世间”电视：请求来源
    public final static String REFERER_LINUX = "https://sx0372.com/static/player/dplayer.html";

    // 文件分隔符，在window中为\\，在linux中为/
    public static final String FILESEPARATOR = System.getProperty("file.separator");

    // M3U8：因子
    public static final float FACTOR = 1.15F;

    // M3U8：默认文件每次读取字节数
    public static final int BYTE_COUNT = 40960;
}
